<div ng-if="pagedata.islogin!=1" class="fui-page fui-page-current" style="background: url({{tomedia(pagedata.setting.bgimg) || '../addons/jy_xiangqin/resource/images/bg.jpg'}}) no-repeat 50%;background-size: cover;">
<div class="fui-content" style="background-color:#333;filter:Alpha(opacity=50);opacity:0.6;">
</div>
<div class="fui-navbar-tip" style="color:#fff;bottom:9rem;background:none;">
	<img style="width:3rem;height:3rem;border-radius:0.5rem;" ng-src="{{tomedia(pagedata.setting.logoindex) || '../addons/jy_xiangqin/resource/images/logoindex.jpg'}}">
</div>
<div class="fui-navbar-tip" style="color:#fff;bottom:5.6rem;background:none;">
	<div style="font-size:0.75rem;letter-spacing:1rem;padding-left:1rem">
	{{pagedata.setting.textindex||'成就天下姻缘'}}
	</div>
</div>
<div class="fui-navbar-tip" style="color:#fff;bottom:3rem;background:none;">
	<div ng-click="access_json('core/member.login/wxauth_check/');" class="bold" style="font-size:0.8rem;line-height:3;margin:auto;width:80%; background-color:#777cfe;border-radius:1.6rem;">
	注册/登录
	</div>
</div>
</div>
<div ng-if="pagedata.islogin==1" class="fui-page fui-page-current" style="background: url({{tomedia(pagedata.setting.yebg) || '../addons/jy_xiangqin/resource/images/yebg.jpg'}}) no-repeat 50%;background-size: cover;">
<style>
/*右小角弹窗*/
#msg-bottomloading{position: fixed;background-color: rgba(255,255,255,0.5);border-radius: 0.5rem;box-shadow: rgba(0, 0, 0, 0.16) 0px 0px 20px 0px;width:10rem;height:auto;right:0.3rem;bottom:7rem;z-index:100000}
#msg-bottomloading i{position: absolute;font-size: 15px;width:15px;height: 15px;right: 10px;top:10px}
#msg-bottomloading .msg_text{padding:0.3rem;color:#333}
</style>
<div class="fui-content" style="background:none;">
	<div class="fui-cellone" style="padding-bottom:0.5rem;padding-top:0.5rem;padding-right:0.4rem;z-index: 108;top:0;">
			 <div class="fui-cell-label" style="width:auto;margin-right:0.3rem">
				<img style="height:1.2rem" ng-src="{{tomedia(pagedata.setting.toplogo) || '../addons/jy_xiangqin/resource/images/logo.png'}}"/>
			</div>
			 <div class="fui-cellone-info">
				<div class="search-input" style="height:1.6rem">
					<form action="javascript:return true">
					<i id="searchsub" class="icon icon-sousuo1 bold" ng-click="pagedata.getitem();" style="line-height: 1.7rem;"></i>
					<input type="search" placeholder="搜索" class="search" ng-model="pagedata.params.keyword" style="height:1.6rem;text-align: left; color: #999; font-size:0.6rem;border: 1px solid #fff;background:#fff;border-radius: 1rem;" />
					</form>
				</div>
			 </div>
			 <div class="fui-cellone-remark noremark">
			 	<span style="margin-left:0.3rem;font-size: 0.75rem;" ng-click="pagedata.getitem();">搜索</span>
				<span ng-click="access_json('jy_xiangqin/member.index/')" style="background:#;margin-left:0.3rem;font-size: 0.75rem;"><i class="icon icon-wo1"></i></span>
			 </div>
	</div>
	<div style="padding:0 0.5rem">
	<style>
	.pics{position:absolute;right:0.5rem;bottom:0.5rem;font-size:0.6rem;color:#fff;padding:0.1rem 0.5rem;background-color:rgba(0,0,0,0.5);border-radius:1rem;}
	.juli{position:absolute;left:0.5rem;bottom:0.5rem;font-size:0.6rem;color:#fff;padding:0.1rem 0.5rem;background-color:rgba(0,0,0,0.5);border-radius:1rem;}
	</style>
	<div ng-if="!pagedata.item.id" class='content-empty' style="margin-top:0">
		<i class='icon icon-wentifankui'></i>
		<div>暂时没有相关内容</div>
	</div>
	<div ng-if="pagedata.item.id">
		<div class="radius" style="background:#fff">
               <div class="image" style="position:relative;" href="javascript:;" ng-click="previewImage(pagedata.item.image,pagedata.item.images);">
                        <img style="border-radius:0.5rem;width:100%;max-height:16rem" ng-src="{{tomedia(pagedata.item.image) || '../core/resource/images/nopic.jpg'}}">
						<div class="pics">共{{pagedata.item.picsnum || 0}}张</div>
						<div class="juli"><i class="icon icon-map" style="font-size:0.5rem;"></i> 距你 {{pagedata.item.juli || '未知'}} km</div>
               </div>
			   <div class="fui-cellone" style="padding-bottom:0.2rem">
						 <div class="fui-cellone-info">
							<span class="bold" style="font-size:0.8rem;width:auto;margin-right:0.2rem">{{pagedata.item.nickname || '无'}}</span>
							<i ng-if="pagedata.item.sex==2" class="icon icon-nv red"></i>
							<i ng-if="pagedata.item.sex==1" class="icon icon-nan" style="color:#18bc9c"></i>
						 </div>
						 <div class="fui-cellone-remark noremark">
							<span class="bold" style="color:#18bc9c">·</span> 在线
						 </div>
			   </div>
			   <div class="fui-title gray" style="margin-top:0">
					<span>{{pagedata.item.city}}</span> · <span>{{pagedata.item.age}}岁</span> ·  <span>{{pagedata.item.zhiweititle ||'自由职业'}}</span> · <span>{{pagedata.item.height || '**cm'}}</span>
			   </div>
				<div style="padding:0.5rem">
				<div class="fui-cellone" style="background:#e9fcf8;border-radius:1rem;padding:0.5rem">
						 <div class="fui-cell-label" style="width:auto;margin-right:0.5rem;color:#18bc9c">
							<i class="icon icon-weixin1" style="font-size:1.2rem"></i>
						</div>
						 <div class="fui-cellone-info">
							{{pagedata.item.sex==1?'他':'她'}}的微信号：{{pagedata.item.wechatnew}}
						 </div>
						 <div class="fui-cellone-remark noremark">
							<span ng-if="pagedata.pluginset.pingtype!=1" href="javascript:" ng-click="pagedata.post.tomid=pagedata.item.mid;pagedata.showping=true" class="jylabel jylabel-success" style="padding:0.3rem 0.6rem;border-radius:1rem;font-weight:400">发约会瓶</span>
							<span ng-if="pagedata.pluginset.pingtype==1" href="javascript:" ng-click="access_json('jy_xiangqin/tcplog//tomid='+pagedata.item.mid)" class="jylabel jylabel-success" style="padding:0.3rem 0.6rem;border-radius:1rem;font-weight:400">跟{{pagedata.item.sex==1?'他':'她'}}聊天</span>
						 </div>
				</div>
				</div>
		</div>
		<div style="padding:0.5rem 0">
				<div class="radius" style="padding:1rem 0.5rem; color:#999;background-image: url('../addons/jy_xiangqin/resource/images/descleft.png');background-size:100% auto; ">
					{{pagedata.item.desc || '暂无个人签名'}}
				</div>
		</div>
		<div class="image" href="javascript:;" ng-click="previewImage(pagedata.item.images[1],pagedata.item.images);" ng-if="pagedata.item.images[1]">
                <img style="border-radius:0.5rem;;width:100%;max-height:16rem" ng-src="{{tomedia(pagedata.item.images[1]) || '../core/resource/images/nopic.jpg'}}">
         </div>
		 <style>
		 .label-gray {
			background-color:#ddd;
			color:#333;
		}
		.label {
			font-size: 85%;
		}
		 </style>
        <div style="padding:0.5rem 0">
				<div class="fui-cellone radius" style="background:#fff;padding:0.5rem">
						 <div class="fui-cell-label bold" style="width:auto;margin-right:0.5rem;">
							{{pagedata.item.sex==1?'他':'她'}}的动态
						</div>
						 <div class="fui-cellone-info"></div>
						 <div class="fui-cellone-remark" ng-click="access_json('/toquan//mid='+pagedata.item.mid)">
							查看所有{{pagedata.item.newsnum}}条
						 </div>
				</div>
				<div class="fui-card-images">
					<img ng-repeat="nv in pagedata.item.newslog" ng-click="pagedata.show_bigimage(img)" ng-src="{{tomedia(nv.image) || '../core/resource/images/nopic.jpg'}}" style="width:33.3%;height:4rem;padding:1px" />
				</div>
		</div>
		<div style="padding:0.5rem 0">
				<div class="radius" style="background:#fff;">
				<div class="fui-cellone" style="padding:0.5rem">
						 <div class="fui-cell-label bold" style="width:auto;margin-right:0.5rem;">
							{{pagedata.item.sex==1?'他':'她'}}的详细资料
						</div>
				</div>
				<div style="padding:0.5rem;padding-top:0">
					<span ng-repeat="mv in pagedata.item.myinfo" class="label label-gray" style="margin-right:0.3rem;line-height:2">{{mv.title}}</span>
				</div>
				</div>
		</div>
		<div style="padding:0.5rem 0">
				<div class="radius" style="background:#fff;">
				<div class="fui-cellone radius" style="padding:0.5rem">
						 <div class="fui-cell-label bold" style="width:auto;margin-right:0.5rem;">
							{{pagedata.item.sex==1?'他':'她'}}的择偶条件
						</div>
				</div>
				<div style="padding:0.5rem;padding-top:0">
					<span ng-repeat="mv in pagedata.item.toinfo" class="label label-gray" style="margin-right:0.3rem;line-height:2">{{mv.title}}</span>
				</div>
				</div>
		</div>
		<div class="image" ng-if="pagedata.item.images[2]">
              <img style="border-radius:0.5rem;width:100%;max-height:16rem" ng-src="{{tomedia(pagedata.item.images[2]) || '../core/resource/images/nopic.jpg'}}">
        </div>
		<div ng-if="pagedata.item.sipicsnum>0" style="padding:0.5rem 0;padding-bottom:0.5rem">
				<div class="fui-cellone radius" style="background:#fff;padding:0.5rem">
						 <div class="fui-cell-label bold" style="width:auto;margin-right:0.5rem;">
							{{pagedata.item.sex==1?'他':'她'}}的私房照
						</div>
						 <div class="fui-cellone-info"></div>
						 <div ng-if="pagedata.item.isbuysiimg==1" class="fui-cellone-remark noremark">
							已上传{{pagedata.item.sipicsnum}}张
						 </div>
						 <div ng-if="pagedata.item.isbuysiimg!=1" class="fui-cellone-remark noremark">
							<span href="javascript:" ng-click="pagedata.showbuysiimg=true" class="jylabel jylabel-success" style="padding:0.3rem 0.6rem;border-radius:1rem;font-weight:400">付费查看</span>
						 </div>
				</div>
				<div ng-if="pagedata.item.isbuysiimg==1" class="image" ng-repeat="p in pagedata.item.siimgs track by $index" style="padding-top:0.3rem">
					 <img ng-click="previewImage(pagedata.item.siimgs[0],pagedata.item.siimgs);" style="border-radius:0.5rem;width:100%;max-height:16rem" ng-src="{{tomedia(p) || '../core/resource/images/nopic.jpg'}}">
				</div>
		</div>
		<div ng-if="pagedata.item.sivideonum>0" style="padding:0.5rem 0;padding-bottom:3rem">
				<div class="fui-cellone radius" style="background:#fff;padding:0.5rem">
						 <div class="fui-cell-label bold" style="width:auto;margin-right:0.5rem;">
							{{pagedata.item.sex==1?'他':'她'}}的私密视频
						</div>
						 <div class="fui-cellone-info"></div>
						 <div ng-if="pagedata.item.isbuysivideo==1" class="fui-cellone-remark noremark">
							已上传{{pagedata.item.sivideonum}}个
						 </div>
						 <div ng-if="pagedata.item.isbuysivideo!=1" class="fui-cellone-remark noremark">
							<span href="javascript:" ng-click="pagedata.showbuysivideo=true" class="jylabel jylabel-success" style="padding:0.3rem 0.6rem;border-radius:1rem;font-weight:400">付费查看</span>
						 </div>
						 <div ng-if="pagedata.item.isbuysivideo==1" class="fui-cellone-remark noremark">
							<span href="javascript:" ng-click="access_json('jy_xiangqin/simivideo//mid='+pagedata.item.mid)" class="jylabel jylabel-success" style="padding:0.3rem 0.6rem;border-radius:1rem;font-weight:400">前往查看</span>
						 </div>
				</div>
		</div>
		</div>
	</div>
</div>
<div ng-if="pagedata.item.id" class="fui-navbar-tip" style="color:#fff;bottom:5rem;background:none;">
	<i class="icon icon-cuowu bold" ng-click="pagedata.getitem()" style="margin-right:2rem;border-radius:100%;font-size:1.6rem;padding:0.6rem;background:#f2f2f2;color:#666"></i>
	<i ng-class="{'icon bold':1, 'icon-follow':pagedata.item.islike!=1,'icon-xiai':pagedata.item.islike==1}" ng-click="pagedata.guanz(pagedata.item.mid);" style="margin-right:2rem;border-radius:100%;font-size:1.5rem;padding:0.55rem;background:#777cfe;"></i>
	<i ng-if="pagedata.ping.isclose!=1" class="icon icon-lvyoutehui bold" ng-click="pagedata.post.tomid=pagedata.item.mid;pagedata.showping=true" style="border-radius:100%;font-size:1.5rem;padding:0.55rem;background:#ff7396;"></i>
	<i ng-if="pagedata.ping.isclose==1" class="icon icon-lvyoutehui bold" ng-click="access_json('jy_xiangqin/tcplog//tomid='+pagedata.item.mid)" style="border-radius:100%;font-size:1.5rem;padding:0.55rem;background:#ff7396;"></i>
</div>
<div ng-include="sys_html('common/_buysivideo')"></div>
<div ng-include="sys_html('common/_buysiimg')"></div>
<div ng-include="sys_html('common/_sendping')"></div>
<div ng-include="sys_html('_footer')"></div>
<div ng-if="pagedata.show_lookmsg" id="msg-bottomloading" href="javascript:;" ng-click="pagedata.show_lookmsg=false">
	<i class="fa fa-times"></i>
	<div class="msg_text">
		{{pagedata.liao_lookmsg ||'你好！欢迎浏览我的主页！'}}
	</div>
</div>
</div>
<script>
scope.pagedata.uplocation=function(isup){
	// 百度地图API功能
	window.scope.location(function(re){
		console.log('re');console.log(re)
		var lat_lng = re.lat_lng;
		scope.pagedata.params.lat=lat_lng.lat;
		scope.pagedata.params.lng=lat_lng.lng;
		scope.pagedata.pcd=re.addressComponents;
		scope.pagedata.pcd.street=scope.pagedata.pcd.street_recommend?scope.pagedata.pcd.street_recommend:scope.pagedata.pcd.street;
		scope.post_json('jy_xiangqin/index/uppcd/',scope.pagedata.pcd,function(res){});
		scope.pagedata.getitem();
	});
}
scope.pagedata.getitem=function(){
	scope.get('jy_xiangqin/index/getitem/keyword='+scope.pagedata.params.keyword+'&lat='+scope.pagedata.params.lat+'&lng='+scope.pagedata.params.lng,function(res){
		scope.pagedata.item=res;
		setTimeout(function(){
			if(res.liao_lookmsg){
				scope.pagedata.show_lookmsg=true;
				scope.$evalAsync();
			}
		},3000);
		scope.$evalAsync();
	});
}
if(scope.pagedata.islogin==1){
	if(!scope.pagedata.pcd.street){
		scope.pagedata.uplocation();
	}
	scope.pagedata.getitem();
}
scope.pagedata.guanz=function(mid){
	scope.post_json('/item/guanz/mid='+mid,{},function(res){
		if(scope.pagedata.item.islike==1){
			scope.pagedata.item.islike=0;
		}else{
			scope.pagedata.item.islike=1;
		}
		scope.$evalAsync();
		scope.message(res);
	});
}
scope.pagedata.pay_submit=function(post,post_url,complete_url){
	complete_url=complete_url?complete_url:'jy_xiangqin/memberitem//mid='+scope.pagedata.item.mid
	scope.post_json(post_url,post,function(result){
		if(result.order_id){
			scope.pagedata.order_id=result.order_id;
			scope.$evalAsync();
			scope.tool.pay(result.pay_id,function(res){
					if(res.type=='success'){
						scope.message('支付成功！','success',complete_url);
					}else{
						scope.message('支付失败！','success',complete_url);
					}
			},'','',complete_url,complete_url);
		}else{
			scope.message(result);
		}
	});
}
</script>